package pers.fengxu.learnmybatis.demo;

import pers.fengxu.learnmybatis.config.Configure;
import pers.fengxu.learnmybatis.demo.entity.User;
import pers.fengxu.learnmybatis.demo.mapper.UserMapper;

import java.util.List;

public class Application {
    public static void main(String[] args) {
        Configure configure = new Configure("pers.fengxu.learnmybatis.demo.mapper");
        UserMapper mapper = configure.getMapper(UserMapper.class);
        List<User> users = mapper.selectAll();
        users.forEach(System.out::println);
    }
}
